package com.example.demo.service.Impl;

import com.example.demo.mapper.NoticeMapper;
import com.example.demo.module.entity.Notice;
import com.example.demo.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeServiceImpl implements NoticeService {
    @Autowired
    private NoticeMapper noticeMapper;

    @Override
    public List<Notice> findAll() throws Exception {
        return noticeMapper.selectAll();
    }
}
